import request from "@/router/axios";

//详情
export const getDetail = (id) => {
  return request({
    url: "/api/hg-quality/reviewreport/detail",
    method: "get",
    params: { id }
  });
};
//列表
export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/reviewreport/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};
//删除
export const remove = ids => {
  return request({
    url: "/api/hg-quality/reviewreport/remove",
    method: "post",
    params: { ids }
  });
};
//保存、修改
export const save = data => {
  return request({
    url: "/api/hg-quality/reviewreport/save",
    method: "post",
    data
  });
};
//启动流程--提交
export const startProcess = id => {
  return request({
    url: "/api/hg-quality/reviewreport/start-process",
    method: "post",
    params: { id }
  });
};

